package com.hgkj.cloud.base.dao;

import com.hgkj.cloud.base.domain.TenantNotices;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface TenantNoticesMapper {
    int deleteByPrimaryKey(Long id);

    int insert(TenantNotices record);

    int insertSelective(TenantNotices record);

    TenantNotices selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(TenantNotices record);

    int updateByPrimaryKey(TenantNotices record);

    Long findNoticeCount(Map<String, Object> map);

    List<TenantNotices> listNotices(Map<String, Object> map);

    List<TenantNotices> listUnreadNotices(Map<String, Object> map);

    Long findUnreadNoticeCount(Map<String, Object> map);

    int flagNoticeRead(Long id);

}